package com20230218;

public class Prime1 {
    public static void main(String[] args) {
        int sum = 0;
//        System.out.println("1既不是质数也不是合数");
        out:for (int i = 2; i <= 100; i++) {
            in:for (int j = 2; j < i; j++) {
                if (i % j == 0){
//                    System.out.print(i + "不是质数" + "\t");
                    continue out;
                }
            }
            System.out.print(i + "\t");
            sum += i;
        }
        System.out.println(sum);
    }
}
